(function() {
    var myApp = angular.module('myApp');

    myApp.constant("myUserTableOption", {
        dom: 'lftipr',
        rowReorder: true,
        processing: true, //是否显示处理状态
        serverSide: true, //是否开启服务器模式
        language: {
            url: '../../pub/datatables/zh_cn.json'
        },
        order: [[ 5, "desc" ]],
        columns    : [
            { data:'nikename'},
            { data: 'phone' },
            { data: 'score' },
            { data:'position_name'},
            { data:'entrytime'},
            { data:'exittime'},
            {
                render: function(data, type, row, meta) {
                    if(row.if_active==1){
                        return '在职'
                    }else{
                        return '离职'
                    }
                }

            }
        ]
    });
})();